package com.ruiben.mall.pojo;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "recharge_log")
public class RechargeLog {
    /**
     * id
     */
    private String id;

    /**
     * 用户id
     */
    @Column(name = "userId")
    private String userid;

    private String cardId;

    /**
     * 用户充值金额
     */
    @Column(name = "recharge_money")
    private Integer rechargeMoney;

    /**
     * 用户充值时间
     */
    @Column(name = "recharge_time")
    private Date rechargeTime;


    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }


    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    /**
     * 获取id
     *
     * @return id - id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户id
     *
     * @return userId - 用户id
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 设置用户id
     *
     * @param userid 用户id
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 获取用户充值金额
     *
     * @return recharge_money - 用户充值金额
     */
    public Integer getRechargeMoney() {
        return rechargeMoney;
    }

    /**
     * 设置用户充值金额
     *
     * @param rechargeMoney 用户充值金额
     */
    public void setRechargeMoney(Integer rechargeMoney) {
        this.rechargeMoney = rechargeMoney;
    }

    /**
     * 获取用户充值时间
     *
     * @return recharge_time - 用户充值时间
     */
    public Date getRechargeTime() {
        return rechargeTime;
    }

    /**
     * 设置用户充值时间
     *
     * @param rechargeTime 用户充值时间
     */
    public void setRechargeTime(Date rechargeTime) {
        this.rechargeTime = rechargeTime;
    }
}